﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="TopCompetencyEmployees.aspx.cs" Inherits="BSCMFF.Web.Pages.Reporting.TopCompetencyEmployees" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<bsc:EvaluationSelection ID="EvalSelection" runat="server"/>
<asp:Label ID="LabelNoCompetencyReward" runat="server" Text="There is no Competency reward system for selected Evaluation period"
ForeColor="Red" Visible="False" 
        meta:resourcekey="LabelNoCompetencyRewardResource1"></asp:Label>
<asp:Label ID="LabelToFewEmployees" runat="server" Text="There are too few Employees for Evaluation period"
ForeColor="Red" Visible="False" meta:resourcekey="LabelToFewEmployeesResource1"></asp:Label>

<asp:HiddenField ID="HiddenFieldBottom" runat="server" />
<asp:HiddenField ID="HiddenFieldTop" runat="server" />
<asp:HiddenField ID="HiddenFieldCurrent" runat="server" />
<asp:Panel ID="PanelRewards" runat="server"  Visible="False" 
        meta:resourcekey="PanelRewardsResource1">

<table>
    <tr>
        <td>
            <asp:Label ID="LabelBonusCompetencies" runat="server" 
                Text="Bonus for Competencies" 
                meta:resourcekey="LabelBonusCompetenciesResource1"></asp:Label>
        </td>
        <td>
            <telerik:RadNumericTextBox ID="RadNumericTextBoxBonusCompetencies" 
                runat="server" Type="Currency" Width="100px"
            Enabled="False" Culture="sk-SK" LabelCssClass="" 
                meta:resourcekey="RadNumericTextBoxBonusCompetenciesResource1">
            </telerik:RadNumericTextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="LabelNumberOfEmployees2" runat="server" 
                meta:resourcekey="LabelNumberOfEmployees2Resource1"></asp:Label>
        </td>
        <td>
            <telerik:RadNumericTextBox ID="RadNumericTextBoxNumberOfEmployees2" 
                runat="server" Width="60px"
            Enabled="False" Culture="sk-SK" LabelCssClass="" 
                meta:resourcekey="RadNumericTextBoxNumberOfEmployees2Resource1">
            <NumberFormat DecimalDigits="0" />
            </telerik:RadNumericTextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="LabelBonusPerEmployee2" runat="server" 
                Text="Bonus Per Employee" 
                meta:resourcekey="LabelBonusPerEmployee2Resource1"></asp:Label>
        </td>
        <td>
            <telerik:RadNumericTextBox ID="RadNumericTextBoxBonusPerEmployee2" 
                runat="server" Width="60px" Type="Currency"
            Enabled="False" Culture="sk-SK" LabelCssClass="" 
                meta:resourcekey="RadNumericTextBoxBonusPerEmployee2Resource1">
            </telerik:RadNumericTextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="LabelCompetencyPossibleBonus" runat="server" 
                Text="If you are in Top 10% " 
                meta:resourcekey="LabelCompetencyPossibleBonusResource1"></asp:Label>
        </td>
        <td>
            <telerik:RadNumericTextBox ID="RadNumericTextBoxCompetencyPossibleBonus" 
                runat="server" Type="Currency" Width="60px"
            Enabled="False" Culture="sk-SK" LabelCssClass="" 
                meta:resourcekey="RadNumericTextBoxCompetencyPossibleBonusResource1">
            </telerik:RadNumericTextBox>
        </td>
    </tr>
    </table>

    <asp:Label ID="LabelCompetencies" runat="server" Text="Competencies" 
        meta:resourcekey="LabelCompetenciesResource1" ></asp:Label>
    <telerik:RadGrid ID="RadGridCompetencies" runat="server" AutoGenerateColumns="False" Width="400"
        onitemdatabound="RadGridCompetencies_ItemDataBound" CellSpacing="0" 
        GridLines="None" meta:resourcekey="RadGridCompetenciesResource1">
        <MasterTableView ShowFooter="True">
            <CommandItemSettings ExportToPdfText="Export to PDF" />
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="Fullname" HeaderText="Fullname"
                    FilterControlAltText="Filter Fullname column" 
                    meta:resourcekey="GridBoundColumnResource1" UniqueName="Fullname">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Competency" DataType="System.Int32" 
                    FilterControlAltText="Filter Percentage column" HeaderText="Percentage" 
                    meta:resourcekey="GridBoundColumnResource2" UniqueName="Percentage">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="salary" DataType="System.Double"  Visible="false"
                    FilterControlAltText="Filter Salary column" HeaderText="Salary" 
                    meta:resourcekey="GridBoundColumnResource3" UniqueName="Salary">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="bonus" DataType="System.Double" 
                    FilterControlAltText="Filter Bonus column" HeaderText="Bonus" 
                    meta:resourcekey="GridBoundColumnResource4" UniqueName="Bonus" Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn FilterControlAltText="Filter LabelBonus column" 
                    HeaderText="Bonus" meta:resourcekey="GridTemplateColumnResource1" 
                    UniqueName="LabelBonus">
                    <FooterTemplate>
                        <asp:Label ID="LabelBonusSum" runat="server" 
                            meta:resourcekey="LabelBonusSumResource1"></asp:Label>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LabelBonus" runat="server" 
                            meta:resourcekey="LabelBonusResource1" Text='<%# Eval("bonus") %>'></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>

</asp:Panel>

</asp:Content>
